package com.amrit.revision;

public class ThreadTest {
	public static void main(String[] args) {

		MyThread mt = new MyThread("A", 6);
		mt.setPriority(10);
		MyThread mt1 = new MyThread("B", 6);
		MyThread mt2 = new MyThread("C", 6);
		MyThread mt3 = new MyThread("D", 6);
		MyThread mt4 = new MyThread("E", 6);
		MyThread mt5 = new MyThread("F", 6);
		mt5.setPriority(9);
		mt2.setDaemon(true);
		CustomThread ct = new CustomThread("myTgread", 10);
		ct.run();

		mt.start();
		mt1.start();
		mt2.start();
		mt3.start();
		mt4.start();
		mt5.start();
	}

}
